Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update username in EIP-1319 #2550

Merged
merged 1 commit into from
Sep 8, 2020
Merged

Conversation

njgheorghita
Copy link
Contributor

@njgheorghita njgheorghita commented Mar 3, 2020

Added the specification for ethPM uris. They've been an effective solution for handling packages so far - and are already implemented in the ethpm-cli and Brownie, and are also outlined in the documentation.

@njgheorghita njgheorghita marked this pull request as ready for review March 3, 2020 20:18
@eip-automerger
Copy link

Hi! I'm a bot, and I wanted to automerge your PR, but couldn't because of the following issue(s):

@njgheorghita
Copy link
Contributor Author

ping @gnidan @iamdefinitelyahuman @pipermerriam for input/confirmation. Specifically if all looks well, could @gnidan approve this pr - since my email listed in the pr is not the one associated with my github, so I can't get this merged.

@iamdefinitelyahuman
Copy link

I like it! Looks very clean. Thanks for pinging me on this.

EIPS/eip-1319.md Outdated
`ethpm://defi.snakecharmers.eth/compound@2%402`

#### `compound` package, version `1.1.0`, `CErc20` abi
`ethpm://defi.snakecharmers.eth/compound@1.1.0/contract_types/CErc20/abi`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if each of these was available as something that could be easily used as a test vector. They technically can in their current form, but it might be nice to have them available as YAML/JSON documents so that they are more easily portable.

EIPS/eip-1319.md Outdated
- If the package version contains any [url unsafe characters](https://www.werockyourweb.com/url-escape-characters/), they **must** be safely escaped
- Since semver is not strictly enforced by the ethpm spec, if the `package_version` is omitted from a uri, it is up to the tooling / framework to look up all available versions and ask the user which version they want to utilize.

#### `json_pointer`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section should have at minimum a reference to the JSON-pointer specification number (assuming it is an RFC) and maybe a link/URI to the actual specification.

EIPS/eip-1319.md Outdated
- Optional
- String of the target package version
- If the package version contains any [url unsafe characters](https://www.werockyourweb.com/url-escape-characters/), they **must** be safely escaped
- Since semver is not strictly enforced by the ethpm spec, if the `package_version` is omitted from a uri, it is up to the tooling / framework to look up all available versions and ask the user which version they want to utilize.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would probably be better to use the **should** language. Something like:

if the package_version is omitted from a uri, tooling should avoid guessing in the face of any ambiguity and present the user with a choice from the available versions.

EIPS/eip-1319.md Outdated

#### `registry_address`
- Required
- This **should** be an ENS name whenever possible, or a `0x`-prefixed, checksummed address.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads as if an ENS name is preferable to the other formats. Maybe reword as

This should be either an ENS name or a 0x-prefixed, checksummed address. ENS names are more suitable for cases where mutability of the underlying asset is acceptable and there is implicit trust in the owner of the name. 0x prefixed addresses are more preferable in higher security cases to avoid needing to trust the controller of the name.

@axic
Copy link
Member

axic commented Sep 3, 2020

@njgheorghita is this still outstanding for merging?

@njgheorghita
Copy link
Contributor Author

@axic Thanks for the reminder. It has all the necessary approvals afaik, it's just that the email address associated with my github account is not the one listed under my name as an author on this ERC. Would you be able to push the merge through?

@axic
Copy link
Member

axic commented Sep 4, 2020

@njgheorghita do you want to change the author line to github username or another email so you can merge these draft changes?

@axic
Copy link
Member

axic commented Sep 4, 2020

Can you also merge in master (or rebase)? We should check what the validator says now as this was creating quite a while ago.

EIPS/eip-1319.md Outdated
@@ -166,6 +166,63 @@ release versions while allowing them to use any versioning schema they choose.

Registries may offer more complex `read` APIs that manage requests for packages within a semver range or at `latest` etc. This EIP is agnostic about how tooling or registries might implement these. It recommends that registries implement [EIP 165](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-165.md) and avail themselves of resources to publish more complex interfaces such as [EIP 926](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-926.md).

## EthPM URIs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not fully sure the best way is to include both the URI format and everything else in a single EIP. Would suggest for consideration to make this a separate EIP depending on this one.

@njgheorghita njgheorghita force-pushed the ethpm-uri-definition branch 4 times, most recently from 4b4b502 to 35e92b5 Compare September 4, 2020 21:43
@njgheorghita
Copy link
Contributor Author

@axic I've gone ahead and moved the Ethpm URI spec to a new ERC. I updated my username in this ERC just in case there are future edits that need to be made.

@MicahZoltu
Copy link
Contributor

Should probably make this EIP require 2942, since it references the path specification in here.

@MicahZoltu
Copy link
Contributor

Though, it currently only references it casually in an example, without making any other mention anywhere in the specification of it. Maybe we can just remove that one example and merge this (which ends up being just an author update)?

@njgheorghita
Copy link
Contributor Author

@MicahZoltu Agreed, made the change, thanks!

@axic axic changed the title Add ethpm uri definition Update username in EIP-1319 Sep 8, 2020
@axic axic merged commit 9234722 into ethereum:master Sep 8, 2020
tkstanczak pushed a commit to tkstanczak/EIPs that referenced this pull request Nov 7, 2020
Arachnid pushed a commit to Arachnid/EIPs that referenced this pull request Mar 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants